<template>
    <div>
        <el-button type="danger" @click="testHandler">测试接口</el-button>
        <el-button type="danger" @click="testLogoutHandler">测试logout</el-button>
    </div>
<!--    <div class="app-wrapper">-->
<!--        <el-container>-->
<!--            <el-aside width="200px">Aside</el-aside>-->
<!--            <el-container>-->
<!--                <el-header>Header</el-header>-->
<!--                <el-main>Main</el-main>-->
<!--                <el-footer>Footer</el-footer>-->
<!--            </el-container>-->
<!--        </el-container>-->
<!--    </div>-->
</template>

<script setup>
import requestUtil from '@/util/request'
import router from "@/router";


const testHandler=async ()=>{
    let result=await requestUtil.get("test/user/list");

}

const testLogoutHandler=async ()=>{
    let result=await requestUtil.get("logout");
    router.replace("/");
}
</script>

<style scoped>

</style>
